/* ── Scoped Loopstack Footer Section for Troya Agent (Unified Title/Sentence Case Style) ── */
.ls-footer {
    --footer-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --footer-mono: var(--mono, "Courier New", Courier, monospace);
    background-color: #050505;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    cursor: none;
    z-index: 12;
    font-family: var(--footer-font);
}

.ls-footer * {
    box-sizing: border-box;
}

.ls-footer #top-gradient {
    position: absolute;
    top: -30vh;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    pointer-events: none;
}

.ls-footer .hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8vh;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

.ls-footer .hero-title {
    font-family: var(--footer-font);
    font-size: clamp(2.4rem, 4.8vw, 4.4rem);
    font-weight: 700;
    color: var(--white, #eee8de);
    line-height: 1.02;
    margin-bottom: 2.2rem;
    letter-spacing: -0.03em;
    word-spacing: 0.04em;
    text-transform: none;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: none;
}

/* Color the second line ("on mainnet beta.") in molten orange (#ff4d00) */
.ls-footer .hero-title br ~ .word-wrapper .word-inner {
    color: var(--orange, #ff4d00);
}

.ls-footer .hero-btn {
    font-family: var(--footer-font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #ffffff;
    background-color: #050505;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 1.2rem 2.4rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    cursor: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
    outline: none;
    text-decoration: none;
}

.ls-footer .hero-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.ls-footer .hero-btn:active {
    transform: translateY(0);
}

.ls-footer .hero-btn:focus-visible {
    outline: 2px solid #39FF14;
    outline-offset: 5px;
}

.ls-footer .blinking-dot {
    width: 10px;
    height: 10px;
    background-color: #39FF14;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    animation: ls-pulse-glow 2s infinite ease-in-out;
}

.ls-footer .blinking-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background-color: rgba(57, 255, 20, 0.45);
    border-radius: 50%;
    animation: ls-wave-expand 2s infinite ease-in-out;
}

@keyframes ls-pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.85);
        box-shadow: 0 0 4px rgba(57, 255, 20, 0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(57, 255, 20, 0.9);
    }
}

@keyframes ls-wave-expand {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.3);
        opacity: 0;
    }
}

.ls-footer .footer-container {
    position: absolute;
    top: 52%;
    left: 24px;
    right: 24px;
    width: calc(100% - 48px);
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.ls-footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0 5px;
}

.ls-footer .footer-title {
    font-family: var(--footer-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white, #eee8de);
    letter-spacing: -0.025em;
    text-transform: none;
    margin: 0;
}

.ls-footer .footer-title.quote {
    text-transform: none;
    color: var(--orange, #ff4d00);
}

.ls-footer .footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1.6rem 0;
    width: 100%;
}

.ls-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5px;
}

.ls-footer .footer-socials {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex: 1;
}

.ls-footer .social-icon {
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ls-footer .social-icon:hover {
    color: var(--orange, #ff4d00);
    transform: translateY(-2px);
}

.ls-footer .footer-links {
    display: flex;
    gap: 2.2rem;
    justify-content: center;
    align-items: center;
    flex: 2;
}

.ls-footer .footer-link {
    font-family: var(--footer-font);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--white, #eee8de);
    text-decoration: none;
    letter-spacing: -0.01em;
    text-transform: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.ls-footer .footer-link:hover {
    color: var(--orange, #ff4d00);
    transform: translateY(-1px);
}

.ls-footer .footer-copyright {
    font-family: var(--footer-mono);
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(238, 232, 222, 0.55);
    text-align: right;
    flex: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ls-footer .footer-logo-wrap {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    margin: 0;
}

.ls-footer .footer-logo-text {
    font-family: var(--footer-font);
    font-size: 19vw;
    font-weight: 800;
    color: var(--white, #eee8de);
    letter-spacing: -0.035em;
    text-transform: uppercase;
    line-height: 0.92;
    margin: 0;
    text-align: center;
    width: 100%;
    pointer-events: none;
    opacity: 0.96;
    text-shadow: none;
    white-space: nowrap;
}

.ls-footer .video-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%;
    overflow: hidden;
    z-index: 0;
}

.ls-footer #bg-video {
    width: 100%;
    height: 110%;
    object-fit: cover;
    display: block;
    transform: translateY(0%);
}

.glass-cursor-card {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-cursor-card.active {
    opacity: 1;
}

.glass-cursor-card.dark-mode {
    background: rgba(0, 0, 0, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.cursor-card-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #39FF14;
    text-transform: none;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.45);
}

.cursor-card-text .text-white {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.cursor-ring-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    z-index: 99998;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.cursor-ring-outline.active {
    opacity: 1;
}

.cursor-ring-outline.expanded {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hide main page orange dot cursor while inside .ls-footer so the glass cursor card shines */
body:has(.ls-footer:hover) #cursor,
body:has(.ls-footer:hover) #cursor-ring {
    opacity: 0 !important;
}

.ls-footer .hero-title .word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}

.ls-footer .hero-title .word-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(105%);
    filter: blur(20px);
}

.ls-footer.in-view .hero-title .word-inner {
    animation: ls-word-reveal-mask 1.3s cubic-bezier(0.05, 0.9, 0.1, 1) forwards;
}

@keyframes ls-word-reveal-mask {
    0% {
        opacity: 0;
        transform: translateY(105%);
        filter: blur(20px);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.ls-footer .footer-logo-text .letter-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 0.96;
    padding-bottom: 0.12em;
}

.ls-footer .footer-logo-text .letter-inner {
    display: inline-block;
    opacity: 0;
    transform: translateX(-105%);
    filter: blur(20px);
}

.ls-footer.in-view .footer-logo-text .letter-inner {
    animation: ls-letter-reveal-mask 1.2s cubic-bezier(0.05, 0.9, 0.1, 1) forwards;
}

@keyframes ls-letter-reveal-mask {
    0% {
        opacity: 0;
        transform: translateX(-105%);
        filter: blur(20px);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0.96;
        transform: translateX(0);
        filter: blur(0);
    }
}

@media (max-width: 700px) {
    .ls-footer .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .ls-footer .footer-container {
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
    }

    .ls-footer .footer-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }

    .ls-footer .footer-title {
        font-size: 1.15rem;
    }

    .ls-footer .footer-divider {
        margin: 1.1rem 0;
    }

    .ls-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .ls-footer .footer-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1rem 1.4rem;
        order: -1;
    }

    .ls-footer .footer-copyright {
        text-align: left;
    }

    .ls-footer .footer-logo-text {
        font-size: 14vw;
        transform: none;
    }
}

@media (hover: none) {
    .ls-footer,
    .ls-footer .hero-btn {
        cursor: auto;
    }

    .cursor-ring-outline,
    .glass-cursor-card {
        display: none;
    }
}
